<?php
	$hour = $_POST["hour"];
	$min = $_POST["min"];
	$sec = $_POST["sec"];
	
	$duration = $hour * 3600000 + $min * 60000 + $sec * 1000;
	
	setcookie("Duration", $duration, time()+100000);
	setcookie("cd_on", 0, time()+100000);
	
	$back = "countdown.html";
	header("Location: $back"); 
	
?>